home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1999 #2 / Amiga Plus CD - 1999 - No. 2.iso / System-Boost / Grafik / raylabwos / scenes / examples.rl < prev    next >
Encoding:
Text File  |  1998-11-08  |  3.6 KB  |  247 lines

  1. #################################################################
  2. #                                #
  3. #    Name:    examples.rl                    #
  4. #    Author:    Marcus Geelnard                    #
  5. #    Date:    10-Jul-1996                    #
  6. #                                #
  7. #    RayLab version:    1.1                    #
  8. #                                #
  9. #    Here are some examples of texture-patterns that are    #
  10. #    available in RayLab 1.1.                #
  11. #                                #
  12. #################################################################
  13.  
  14.  
  15.  
  16.  
  17. DefTexture:
  18.     phong 0.5  phongsize 50  diffuse 0.9  ambient 0.2
  19. :end
  20.  
  21.  
  22. #################################################################
  23. #
  24. #    These nine spheres all have different texture patterns
  25. #
  26. #################################################################
  27.  
  28. *  Spots
  29.  
  30. Sphere:
  31.     radius 1  centre -2.5 0 2.5
  32.     texture:
  33.         pattern spots
  34.         colormap 3
  35.             0.0  0.1 0.7 0.1
  36.             0.2  0.2 1.0 0.2
  37.             1.0  0.0 0.5 0.0
  38.         transform:
  39.             scale 0.3 0.3 0.3
  40.         :end
  41.     :end
  42. :end
  43.  
  44.  
  45. *  Squares
  46.  
  47. Sphere:
  48.     radius 1  centre 0 0 2.5
  49.     texture:
  50.         pattern squares
  51.         colormap 3
  52.             0.0  1.0 0.2 1.0
  53.             0.7  1.0 0.8 1.0
  54.             1.0  0.2 0.8 0.2
  55.         transform:
  56.             scale 0.3 0.3 0.3
  57.         :end
  58.     :end
  59. :end
  60.  
  61.  
  62. *  Checker
  63.  
  64. Sphere:
  65.     radius 1  centre 2.5 0 2.5
  66.     texture:
  67.         pattern checker
  68.         colormap 2
  69.             0  0.3 0.3 0.3
  70.             1  0.4 0.4 0.9
  71.         transform:
  72.             scale 0.3 0.3 0.3
  73.         :end
  74.     :end
  75. :end
  76.  
  77.  
  78.  
  79. * White marble
  80.  
  81. Sphere:
  82.     radius 1  centre -2.5 0 0
  83.     texture:
  84.         pattern marble
  85.         turbulence 0.4
  86.         colormap 4
  87.             0.0  0.1 0.1 0.1
  88.             0.2  0.3 0.3 0.3
  89.             0.5  0.6 0.6 0.6
  90.             1.0  0.9 0.9 0.9
  91.         transform:
  92.             rotate 0 30 -65
  93.             scale 0.6 0.6 0.6
  94.         :end
  95.     :end
  96. :end
  97.  
  98.  
  99. *  Wood
  100.  
  101. Sphere:
  102.     radius 1  centre 0 0 0
  103.  
  104.     texture:
  105.         pattern wood
  106.         turbulence 0.2
  107.         colormap 6
  108.             0.0  0.55 0.26 0.05
  109.             0.35 0.57 0.30 0.06
  110.             0.37 0.70 0.50 0.15
  111.             0.8  0.74 0.52 0.16
  112.             0.83 0.55 0.30 0.06
  113.             1.0  0.55 0.26 0.05
  114.         phong 0.2  phongsize 8        ; Wood is not very shiny
  115.         transform:
  116.             scale 0.14 0.1 0.13
  117.             rotate -40 -20 0
  118.         :end
  119.     :end
  120. :end
  121.  
  122.  
  123. *  Burning (blurb)
  124.  
  125. Sphere:
  126.     radius 1  centre 2.5 0 0
  127.     texture:
  128.         pattern blurb
  129.         turbulence 0.4
  130.         colormap 4
  131.             0.0  1.0 1.0 0.0
  132.             0.2  1.0 0.6 0.0
  133.             0.6  0.7 0.3 0.0
  134.             1.0  1.0 0.0 0.0
  135.         transform:
  136.             scale 0.3 1 0.3
  137.         :end
  138.     :end
  139. :end
  140.  
  141.  
  142.  
  143. *  Gradient
  144.  
  145. Sphere:
  146.     radius 1  centre -2.5 0 -2.5
  147.     texture:
  148.         pattern gradient
  149.         colormap 2
  150.             0  0.0 0.4 0.3
  151.             1  1.0 0.4 0.6
  152.         transform:
  153.             move -2.5 0 -2.5
  154.         :end
  155.     :end
  156. :end
  157.  
  158.  
  159. *  Mandelbrot (reflective)
  160.  
  161. Sphere:
  162.     radius 1  centre 0.0 0 -2.5
  163.     texture:
  164.         pattern mandel
  165.         colormap 4
  166.             0.00  0.2 0.3 0.2
  167.             0.02  1.0 0.0 0.0
  168.             0.50  0.0 0.0 1.0
  169.             1.00  1.0 0.0 1.0
  170.         reflect 0.4 0.45 0.4
  171.         transform:
  172.             move   -0.115 0.670 0.0
  173.             scale  8.0 8.0 1.0
  174.             rotate 90 0 0
  175.             move   0.0 0 -2.5
  176.         :end
  177.     :end
  178. :end
  179.  
  180.  
  181. *  Angular w. twist
  182.  
  183. Sphere:
  184.     radius 1  centre 2.5 0 -2.5
  185.     texture:
  186.         pattern angular
  187.         colormap 4
  188.             0.00  1.0 0.0 1.0
  189.             0.33  0.0 0.0 1.0
  190.             0.66  1.0 0.0 0.0
  191.             1.00  0.0 1.0 0.0
  192.         transform:
  193.             twist 4.0
  194.             move   2.5 0 -2.5
  195.         :end
  196.     :end
  197. :end
  198.  
  199.  
  200.  
  201. #################################################################
  202. #
  203. #    This is a psychadelic background plane
  204. #
  205. #################################################################
  206.  
  207.  
  208. Plane:
  209.     normal 0 -1 0  offset -1.9
  210.     texture:
  211.         pattern blurb
  212.         turbulence 0.35
  213.             colormap 7
  214.             0.0   0.4 0.0 0.7    # The rainbow
  215.             0.3   0.0 0.0 0.9
  216.             0.4   0.0 0.4 1.0
  217.             0.6   0.0 1.0 0.0
  218.             0.75  1.0 1.0 0.0
  219.             0.9   1.0 0.0 0.0
  220.             1.0   0.4 0.0 0.0
  221.         transform:
  222.             scale 0.3 0.6 1.6
  223.         :end
  224.     :end
  225. :end
  226.  
  227.  
  228.  
  229. #################################################################
  230. #
  231. #    The light and the camera
  232. #
  233. #################################################################
  234.  
  235.  
  236. Light:
  237.     location -900 -1600 1000
  238.     color 1 1 1
  239. :end
  240.  
  241. Camera:
  242.     location 0 -50 0
  243.     viewpoint 0 0 0
  244.     aspect 4 3 20        ; Use exreme tele-zoom to avoid
  245. :end                ; wide-angle effects
  246.  
  247.